<?php
	require_once("frmCookie.php");
	
	$myFile = "testFile.txt";
	$fh = fopen($myFile, 'r');
	$theData = fgets($fh);
	while($theData != '')
	{
		$campos = preg_split('/;/', $theData);
		
		$sql .= "insert into prueba2 values(";
		$i=0;
		foreach($campos as $campo)
		{
			if($i==0)
			{
				$sql .= "'$campo'";
			}
			else
			{
				$sql .= ", '$campo'";
			}
			$i++;
		}
		$sql .= ");";
		$theData = fgets($fh);
	}
	//echo $sql;
	fclose($fh);
	echo transactionSQL($sql,true);

?>